package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Set;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    List<Menu> findMenuByRoleId(Integer id);

    Set<Permission> findPermissionByRoleId(Integer id);

    Result deleteById(Integer id);

    Role findAll();

    void add(Role role);
}
